﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chinesys.DataModel;

namespace Chinesys.Entities
{
    public class CategorySubCategoryEntity : EntityBase
    {
        private CategoriesEntity category;
        private SubCategoryEntity subCategory;

        public CategorySubCategoryEntity()
        {            
            this.category = null;
            this.subCategory = null;
        }

        public CategorySubCategoryEntity(CategoriesEntity category, SubCategoryEntity subCategory)
        {
            this.category = category;
            this.subCategory = subCategory;
        }

        public int Id
        {
            get;
            set;
        }

        public int CategoryId { get; set; }

        public int SubCategoryId { get; set; }

        public CategoriesEntity Category
        {
            get
            {
                return this.category;
            }
            set
            {
                this.category = value;
            }
        }

        public SubCategoryEntity SubCategory
        {
            get
            {
                return this.subCategory;
            }
            set
            {
                this.subCategory = value;
            }
        }


    }
}
